#pragma once

#include "ScriptCompiler/AST/ExpressionNode.h"
#include "ScriptCompiler/AST/SentenceNode.h"

class CScriptToken;

class CReturnNode : public CSentenceNode
{
public:
    CReturnNode(std::weak_ptr<CScriptFileContext> InFile)
        : CSentenceNode(InFile,EASTNodeType::Return)
    {
    }

    //return keyword
    std::shared_ptr<CScriptToken> Return;

    //return value
    std::shared_ptr<CExpressionNode> Value;

    virtual void DebugPrint(int32_t InDepth) override;

    virtual std::shared_ptr<CScriptToken> GetFirstToken() override;




};
